
package com.hustcad.plm.rpm.model.dto.issue;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;

@ApiModel(
    value = "创建问题外部对象关系DTO",
    description = ""
)
public class CreatIssueLinkDTO {
    @ApiModelProperty("项目oid")
    private String projectOid;
    @ApiModelProperty("项目otype")
    private String projectOtype;
    @ApiModelProperty("任务oid")
    private String jobOid;
    @ApiModelProperty("任务otype")
    private String jobOtype;
    @ApiModelProperty("问题对象list")
    private List<JSONObject> objectList;
    private String localRepositoryUid;

    public CreatIssueLinkDTO() {
    }

    public String getProjectOid() {
        return this.projectOid;
    }

    public String getProjectOtype() {
        return this.projectOtype;
    }

    public String getJobOid() {
        return this.jobOid;
    }

    public String getJobOtype() {
        return this.jobOtype;
    }

    public List<JSONObject> getObjectList() {
        return this.objectList;
    }

    public String getLocalRepositoryUid() {
        return this.localRepositoryUid;
    }

    public void setProjectOid(final String projectOid) {
        this.projectOid = projectOid;
    }

    public void setProjectOtype(final String projectOtype) {
        this.projectOtype = projectOtype;
    }

    public void setJobOid(final String jobOid) {
        this.jobOid = jobOid;
    }

    public void setJobOtype(final String jobOtype) {
        this.jobOtype = jobOtype;
    }

    public void setObjectList(final List<JSONObject> objectList) {
        this.objectList = objectList;
    }

    public void setLocalRepositoryUid(final String localRepositoryUid) {
        this.localRepositoryUid = localRepositoryUid;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof CreatIssueLinkDTO)) {
            return false;
        } else {
            CreatIssueLinkDTO other = (CreatIssueLinkDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$projectOid = this.getProjectOid();
                Object other$projectOid = other.getProjectOid();
                if (this$projectOid == null) {
                    if (other$projectOid != null) {
                        return false;
                    }
                } else if (!this$projectOid.equals(other$projectOid)) {
                    return false;
                }

                Object this$projectOtype = this.getProjectOtype();
                Object other$projectOtype = other.getProjectOtype();
                if (this$projectOtype == null) {
                    if (other$projectOtype != null) {
                        return false;
                    }
                } else if (!this$projectOtype.equals(other$projectOtype)) {
                    return false;
                }

                Object this$jobOid = this.getJobOid();
                Object other$jobOid = other.getJobOid();
                if (this$jobOid == null) {
                    if (other$jobOid != null) {
                        return false;
                    }
                } else if (!this$jobOid.equals(other$jobOid)) {
                    return false;
                }

                label62: {
                    Object this$jobOtype = this.getJobOtype();
                    Object other$jobOtype = other.getJobOtype();
                    if (this$jobOtype == null) {
                        if (other$jobOtype == null) {
                            break label62;
                        }
                    } else if (this$jobOtype.equals(other$jobOtype)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$objectList = this.getObjectList();
                    Object other$objectList = other.getObjectList();
                    if (this$objectList == null) {
                        if (other$objectList == null) {
                            break label55;
                        }
                    } else if (this$objectList.equals(other$objectList)) {
                        break label55;
                    }

                    return false;
                }

                Object this$localRepositoryUid = this.getLocalRepositoryUid();
                Object other$localRepositoryUid = other.getLocalRepositoryUid();
                if (this$localRepositoryUid == null) {
                    if (other$localRepositoryUid != null) {
                        return false;
                    }
                } else if (!this$localRepositoryUid.equals(other$localRepositoryUid)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof CreatIssueLinkDTO;
    }

    public int hashCode() {
        int result = 1;
        Object $projectOid = this.getProjectOid();
        result = result * 59 + ($projectOid == null ? 43 : $projectOid.hashCode());
        Object $projectOtype = this.getProjectOtype();
        result = result * 59 + ($projectOtype == null ? 43 : $projectOtype.hashCode());
        Object $jobOid = this.getJobOid();
        result = result * 59 + ($jobOid == null ? 43 : $jobOid.hashCode());
        Object $jobOtype = this.getJobOtype();
        result = result * 59 + ($jobOtype == null ? 43 : $jobOtype.hashCode());
        Object $objectList = this.getObjectList();
        result = result * 59 + ($objectList == null ? 43 : $objectList.hashCode());
        Object $localRepositoryUid = this.getLocalRepositoryUid();
        result = result * 59 + ($localRepositoryUid == null ? 43 : $localRepositoryUid.hashCode());
        return result;
    }

    public String toString() {
        return "CreatIssueLinkDTO(projectOid=" + this.getProjectOid() + ", projectOtype=" + this.getProjectOtype() + ", jobOid=" + this.getJobOid() + ", jobOtype=" + this.getJobOtype() + ", objectList=" + this.getObjectList() + ", localRepositoryUid=" + this.getLocalRepositoryUid() + ")";
    }
}
